package com.reservoir.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志记录表 oper_log
 *
 * @author ruoyi
 */
@TableName("re_log")
public class SysOperLog implements Serializable {

    /** 日志主键 */
    @TableId(value = "oper_id", type = IdType.AUTO)
    private Integer operId;

    /** 操作模块 */
    private String title;

    /** 业务类型（0其它 1新增 2修改 3删除） */
    private Integer businessType;

    /** 请求方法 */
    private String method;

    /** 请求方式 */
    private String requestMethod;

    /** 操作类别（0其它 1后台用户 2手机端用户） */
    private Integer operatorType;

    /** 操作人员 */
    private String operName;

    /** 请求url */
    private String operUrl;

    /** 操作地址 */
    private String operIp;

    public Integer getOperStatus() {
        return operStatus;
    }

    public void setOperStatus(Integer operStatus) {
        this.operStatus = operStatus;
    }

    /** 操作状态（0正常 1异常） */
    private Integer operStatus;

    /** 错误消息 */
    private String errorMsg;

    /** 操作时间 */
    private Date operTime;

    /**
     * Gets oper id.
     *
     * @return the oper id
     */
    public Integer getOperId()
    {
        return operId;
    }

    /**
     * Sets oper id.
     *
     * @param operId the oper id
     */
    public void setOperId(Integer operId)
    {
        this.operId = operId;
    }

    /**
     * Gets title.
     *
     * @return the title
     */
    public String getTitle()
    {
        return title;
    }

    /**
     * Sets title.
     *
     * @param title the title
     */
    public void setTitle(String title)
    {
        this.title = title;
    }

    /**
     * Gets business type.
     *
     * @return the business type
     */
    public Integer getBusinessType()
    {
        return businessType;
    }

    /**
     * Sets business type.
     *
     * @param businessType the business type
     */
    public void setBusinessType(Integer businessType)
    {
        this.businessType = businessType;
    }

    /**
     * Gets method.
     *
     * @return the method
     */
    public String getMethod()
    {
        return method;
    }

    /**
     * Sets method.
     *
     * @param method the method
     */
    public void setMethod(String method)
    {
        this.method = method;
    }

    /**
     * Gets request method.
     *
     * @return the request method
     */
    public String getRequestMethod()
    {
        return requestMethod;
    }

    /**
     * Sets request method.
     *
     * @param requestMethod the request method
     */
    public void setRequestMethod(String requestMethod)
    {
        this.requestMethod = requestMethod;
    }

    /**
     * Gets operator type.
     *
     * @return the operator type
     */
    public Integer getOperatorType()
    {
        return operatorType;
    }

    /**
     * Sets operator type.
     *
     * @param operatorType the operator type
     */
    public void setOperatorType(Integer operatorType)
    {
        this.operatorType = operatorType;
    }

    /**
     * Gets oper name.
     *
     * @return the oper name
     */
    public String getOperName()
    {
        return operName;
    }

    /**
     * Sets oper name.
     *
     * @param operName the oper name
     */
    public void setOperName(String operName)
    {
        this.operName = operName;
    }

    /**
     * Gets oper url.
     *
     * @return the oper url
     */
    public String getOperUrl()
    {
        return operUrl;
    }

    /**
     * Sets oper url.
     *
     * @param operUrl the oper url
     */
    public void setOperUrl(String operUrl)
    {
        this.operUrl = operUrl;
    }

    /**
     * Gets oper ip.
     *
     * @return the oper ip
     */
    public String getOperIp()
    {
        return operIp;
    }

    /**
     * Sets oper ip.
     *
     * @param operIp the oper ip
     */
    public void setOperIp(String operIp)
    {
        this.operIp = operIp;
    }


    /**
     * Gets error msg.
     *
     * @return the error msg
     */
    public String getErrorMsg()
    {
        return errorMsg;
    }

    /**
     * Sets error msg.
     *
     * @param errorMsg the error msg
     */
    public void setErrorMsg(String errorMsg)
    {
        this.errorMsg = errorMsg;
    }

    /**
     * Gets oper time.
     *
     * @return the oper time
     */
    public Date getOperTime()
    {
        return operTime;
    }

    /**
     * Sets oper time.
     *
     * @param operTime the oper time
     */
    public void setOperTime(Date operTime)
    {
        this.operTime = operTime;
    }
}
